package net.pzc.filechooser;

import net.pzc.resource.FFCResource;

public class PathGetter {

	private PathGetter() {

	}

	public static String getDesktop() {
		String osName = System.getProperty("os.name");
		String key = osName.replaceAll(" ", "_");
		log("OS名：" + osName + ", Desktopキー：" + key);

		String path = System.getProperty("user.home") + System.getProperty("file.separator") + FFCResource.get(key + "_desktop");
		log("Desktopパス：" + path);

		return path;
	}

	public static String getDocuments() {
		String osName = System.getProperty("os.name");
		String key = osName.replaceAll(" ", "_");
		log("OS名：" + osName + ", Documentsキー：" + key);

		String path = System.getProperty("user.home") + System.getProperty("file.separator") + FFCResource.get(key + "_documents");
		log("Documentsパス：" + path);

		return path;
	}

	private static void log(Object o) {
		System.out.println(o);
	}

}
